﻿@using Smarly.Web.Helpers
@model Smarly.Bussines.Model.Account.Login

@{
	Layout = "~/Views/Shared/_DialogLayout.cshtml";
}



<div style="width:100%; margin: 0;padding:0;text-align:center;">
	<div data-role="controlgroup" data-type="horizontal" data-mini="true">
		<a data-role="button" data-rel="dialog" data-theme="b">Вход</a>
		<a href="@Url.Action("Create", "Account")" data-role="button" data-rel="dialog" data-theme="c" class="d-to-d">Регистрация</a>
	</div>
</div>

<div id="signin">
@using (Html.BeginForm())
{
	@Html.TextBoxFor(x => x.Email, new Dictionary<string, object>{{"type", "email"}, {"placeholder", "Email"}, {"data-theme", "d"}}) 
	@Html.PasswordFor(x => x.Password, new Dictionary<string, object>{{"placeholder", "Пароль"}, {"data-theme", "d"}}) 

	<div style="clear: both;"></div>
	
	<a id="signin_a" class="submit" href="@Url.Action("Index", "Account")" data-ajax="false" data-role="button" data-inline="true" data-theme="b" data-icon="check">Войти</a>
	<a data-role="button" data-inline="true" data-theme="d" data-rel="back" data-icon="delete">Отмена</a>
	
	<a class="submit" href="@Url.Action("Repear", "Account")" data-ajax="false" data-role="button" data-inline="true" data-theme="b" data-icon="gear">Восстановление</a>
}
</div>
